home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / crtex / ex1.pp next >
Encoding:
Text File  |  2000-01-01  |  240 b   |  14 lines

  1. Program Example1;
  2. uses Crt;
  3.  
  4. { Program to demonstrate the AssignCrt function. }
  5.  
  6. var
  7.   F : Text;
  8. begin
  9.   AssignCrt(F);
  10.   Rewrite(F); { Don't forget to open for output! }
  11.   WriteLn(F,'This is written to the Assigned File');
  12.   Close(F);
  13. end.
  14.